public class Person {
    private String name;    //姓名
    private String ID;      //编号
    private String birth;   //生日
    private String gender;  //性别
    private String college; //学校
    private String major;   //专业

    public Person() {}

    public Person(String name, String ID, String birth, String gender, String college, String major) {
        this.name = name;
        this.ID = ID;
        this.birth = birth;
        this.gender = gender;
        this.college = college;
        this.major = major;
    }

    // 姓名
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    // 编号
    public void setID(String ID) {
        this.ID = ID;
    }

    public String getID() {
        return ID;
    }

    // 生日
    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getBirth() {
        return birth;
    }

    // 性别
    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    // 学校
    public void setCollege(String college) {
        this.college = college;
    }

    public String getCollege() {
        return college;
    }

    // 专业
    public void setMajor(String major) {
        this.major = major;
    }

    public String getMajor() {
        return major;
    }

    // 重写toString方法，方便输出对象信息
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", ID='" + ID + '\'' +
                ", birth='" + birth + '\'' +
                ", gender='" + gender + '\'' +
                ", college='" + college + '\'' +
                ", major='" + major + '\'' +
                '}';
    }
}